FillRectangle(WriteableBitmap,Int32,Int32,Int32,Int32,Func<Int32,Int32,Int32>,BlendMode) Method
Draws a filled rectangle.
x2 has to be greater than x1 and y2 has to be greater than y1.
Syntax
[Extension()] public static void FillRectangle( WriteableBitmap bmp, int x1, int y1, int x2, int y2, Func<int,int,int> colorCb, WriteableBitmapExtensions.BlendMode blendMode )
Parameters
- bmp
- The WriteableBitmap.
- x1
- The x-coordinate of the bounding rectangle's left side.
- y1
- The y-coordinate of the bounding rectangle's top side.
- x2
- The x-coordinate of the bounding rectangle's right side.
- y2
- The y-coordinate of the bounding rectangle's bottom side.
- colorCb
- The color.
- blendMode
- The blend mode.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also